package com.aopcinemas.visitor.behaviour;

import jade.core.Agent;

import com.aopcinemas.common.model.AbstractRegistrationBehavior;
import com.aopcinemas.visitor.VisitorUtils;

public class CampaignRegistrationBehavior extends AbstractRegistrationBehavior {

    public CampaignRegistrationBehavior(Agent agent) {
        this(agent, REGISTER);
    }

    public CampaignRegistrationBehavior(Agent agent, int action) {
        super(agent, action);
    }

    private static final long serialVersionUID = 1L;

    @Override
    protected void doRegister() {
        VisitorUtils.registerCampaign(myAgent);
    }

    @Override
    protected void doUnregister() {
        VisitorUtils.unregisterCampaign(myAgent);
    }

}
